-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concat document definitions #105
base: master
Are you sure you want to change the base?
Conversation
@evanrs: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
@evanrs thank you! however, i dont fully understand what's breaking here, is this the case where you're mixing usage of interpolation and the if so, do you mind adding tests here to make sure this works as expected? |
also, |
Will do, thanks for the quick response. |
@jnwng I've added a test that reproduces the problem. I'm having trouble working this change into the current flow. My attempt quickly cascaded to changes in both |
7fd462d
to
8b34c3a
Compare
@evanrs I think merging your work would be highly valuable! Are you still working with graphql-tag on your project(s)? |
Thanks, @AmauryLiet, I am. Are you experiencing this issue? |
@evanrs Do you think this PR is mergeable or is it too old now? |
Happy to take another look today to see how we can get this in!
…On Mon, Apr 23, 2018 at 4:57 AM Amaury Liet ***@***.***> wrote:
@evanrs <https://github.com/evanrs>
Yes we were doing a refacto by switching from using gql`` tags in .js
files to .graphql files and that made some requests fail ;)
Do you think this PR is mergeable or is it too old now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABERRvea0MY_DtUDyi0xJOmqKuOTzDL6ks5trcHAgaJpZM4OBnot>
.
|
This looks like a great feature improvement. Anything I can do to help move this PR along? |
@Vincz thanks for reviving this issue 🙂— the test is still not passing on master. Given the interest in this @jnwng could you provide direction? Or, help us wrangle a member from @apollographql to take the lead on this? @AmauryLiet, I think it is too old to accept this solution — other than the test case, which remains valid. If you, @Vincz, or @mkochendorfer want an edifying experience into GraphQL's ASTs I can promise creating a new PR on this issue will provide! 😛 |
I came to this issue from #159 because importing a fragment from a fragment doesn't work anymore. |
Simple solution that seems to have worked for me: Any reason to avoid using the graphql language printer to do this? |
Converted my code into a pull request (#227) - it's probably slightly inefficient since it's parsing, printing then parsing again - but it works for now and should fix the issue until someone figures out a better solution |
Document fragments parsed by
graphql-tag/loader
lose their definitions when used with agql
tagged template literal. This is fixed by concatenating the document definitions—filtering for duplicates.Without this, the following would fail: